package com.ruoyi.car.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.system.domain.SysFiles;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 车辆对象 car
 *
 * @author zls
 * @date 2020-03-29
 */
public class Car extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆ID */
    private Long id;

    /** 车辆名称 */
    @Excel(name = "车辆名称")
    private String carName;

    /** 车辆描述 */
    private String carDesc;

    /** 大图 */
    private String picBig;

    /** 缩略图 */
    @Excel(name = "缩略图")
    private String picSmall;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /** 车辆状态（0正常 1停用） */
    @Excel(name = "车辆状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private String delFlag;

    /** 品牌id */
    @Excel(name = "品牌id")
    private Long brandId;

    /** 车企id */
    @Excel(name = "车企id")
    private Long companyId;

    /** 规格id */
    @Excel(name = "规格id")
    private Long specId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCarName(String carName)
    {
        this.carName = carName;
    }

    public String getCarName()
    {
        return carName;
    }
    public void setCarDesc(String carDesc)
    {
        this.carDesc = carDesc;
    }

    public String getCarDesc()
    {
        return carDesc;
    }
    public void setPicBig(String picBig)
    {
        this.picBig = picBig;
    }

    public String getPicBig()
    {
        return picBig;
    }
    public void setPicSmall(String picSmall)
    {
        this.picSmall = picSmall;
    }

    public String getPicSmall()
    {
        return picSmall;
    }
    public void setOrderNum(Integer orderNum)
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum()
    {
        return orderNum;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setBrandId(Long brandId)
    {
        this.brandId = brandId;
    }

    public Long getBrandId()
    {
        return brandId;
    }
    public void setCompanyId(Long companyId)
    {
        this.companyId = companyId;
    }

    public Long getCompanyId()
    {
        return companyId;
    }
    public void setSpecId(Long specId)
    {
        this.specId = specId;
    }

    public Long getSpecId()
    {
        return specId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carName", getCarName())
            .append("carDesc", getCarDesc())
            .append("picBig", getPicBig())
            .append("picSmall", getPicSmall())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("brandId", getBrandId())
            .append("companyId", getCompanyId())
            .append("specId", getSpecId())
            .toString();
    }

    private List<SysFiles> introductionImg;
    private List<SysFiles> annex;

    public List<SysFiles> getIntroductionImg() {
        return introductionImg;
    }

    public void setIntroductionImg(List<SysFiles> introductionImg) {
        this.introductionImg = introductionImg;
    }

    public List<SysFiles> getAnnex() {
        return annex;
    }

    public void setAnnex(List<SysFiles> annex) {
        this.annex = annex;
    }
}
